/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.common.i;

import android.os.Environment;
import android.os.StatFs;
import android.text.TextUtils;
import java.io.File;

public final class p {
    public static boolean a() {
        return Environment.getExternalStorageState().equals("mounted");
    }

    public static long b() {
        String str = Environment.getExternalStorageDirectory().getPath();
        if (TextUtils.isEmpty(str))
            return 0L;
        StatFs localStatFs = new StatFs(str);
        long l1 = localStatFs.getBlockSize();
        long l2 = localStatFs.getAvailableBlocks();
        long l3 = l2 * l1;
        return l3;
    }
}